home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 November / Pcwk1197.iso / LOTUS / Eng-ins / SMASTERS / APPROACH / DB2WWW.MPR / SCRIPT / ApproachDoc / WWW Assistant / Body / BtnDn.s (.txt) < prev    next >
Null Bytes Alternating  |  1997-01-09  |  2KB  |  31 lines

  1. '++LotusScript Development Environment:2:5:(Options):0:66
  2.  
  3. '++LotusScript Development Environment:2:5:(Forward):0:1
  4. Declare Sub Click(Source As Button, X As Long, Y As Long, Flags As Long)
  5.  
  6. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7.  
  8. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9. Private Sub BindEvents(Byval Objectname_ As String)
  10.     Static Source As BUTTON
  11.     Set Source = Bind(Objectname_)
  12.     On Event Click From Source Call Click
  13. End Sub
  14.  
  15. '++LotusScript Development Environment:2:2:Click:1:12
  16. Sub Click(Source As Button, X As Long, Y As Long, Flags As Long)
  17.     On Error Resume Next
  18.     With CurrentDocument.www~ Assistant.body
  19.         If Val(.txtNumRows.text) <> 0 Then
  20.             .txtNumRows.background.color.setrgb color_white
  21.             .txtNumRows.font.color.setrgb color_black
  22.             numRows = Val(.txtNumRows.text) - 1
  23.             .txtNumRows.text = Str$(NumRows)
  24.             .txtNumRows.refresh
  25.         Elseif Val(.txtNumRows.text) = 0 Then
  26.             .txtNumRows.background.color.setrgb color_30_gray
  27.             .txtNumRows.font.color.setrgb color_12_gray
  28.         End If
  29.     End With
  30.     Err = 0
  31. End Sub